<extend name="Public/base" />

<block name="body">
	<!-- 标题栏 -->
	<div class="main-title">
		<h2>管理设备配置</h2>
	</div>
	<div class="cf">
		<div class="fl">
            <a title="CPU" class="btn btn-primary" href="{:U('import?type=cpu')}">CPU</a>
            <a title="GPU" class="btn btn-primary" href="{:U('import?type=gpu')}">GPU</a>
            <a title="内存" class="btn btn-primary" href="{:U('import?type=mem')}">内存</a>
            <a title="分辨率" class="btn btn-primary" href="{:U('import?type=resolution')}">分辨率</a>
        </div>

        <!-- 高级搜索 -->
		<div class="search-form fr cf">
			 
		</div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table table-striped">
	</div>
    <div class="page">
        {$_page}
    </div>
</block>

<block name="script">
	<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

	<script type="text/javascript">
	//搜索功能
	$("#search").click(function(){
		var url = $(this).attr('url');
        var query  = $('.search-form').find('input').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
        query = query.replace(/^&/g,'');
        if( url.indexOf('?')>0 ){
            url += '&' + query;
        }else{
            url += '?' + query;
        }
		window.location.href = url;
	});
	//回车搜索
	$(".search-input").keyup(function(e){
		if(e.keyCode === 13){
			$("#search").click();
			return false;
		}
	});
    //导航高亮
    highlight_subnav('{:U('index')}');
	</script>
</block>
